<div align = "center">
	<form name = "frm_addkhachhang" method = "post" action = "">
	<table width = "580" cellpadding = "2" cellspacing = "2" border = "0" align = "center" bgcolor = "#D4D0C8">
	<tr>
		<th colspan = "2" class = "list"> THÊM CHI TIẾT NHẬP</th>
	</tr>
	<tr>
		<td valign = "top" align = "right">Nhà cung cấp</td>
		<td valign = "top" align = "left"> 
			<select name = "cmb_hang">
				<option value = "-1"> --Chọn nhà cung cấp--</option>
			<?php	
			if($listhang){
				 foreach ($listhang['list'] as $key => $value){
					echo '<option value = "'.$value['MaNCC'].'">'.$value['TenNCC'].'</option>';
				 }
			}
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td valign = "top" align = "right">Mặt hàng </td>
		<td valign = "top" align = "left"> 
			<select name = "cmb_mathang">
				<option value = "-1"> --Chọn mặt hàng --</option>
				<?php
					if($listmathang){ 
						foreach ($listmathang['list'] as $key => $value){
							echo '<option value = "'.$value['MaMH'].'">'.$value['TenMH'].'</option>';
						}
					}
				?>
			</select>
		</td>
	</tr>
	<tr>
		<td valign = "top" align = "right">Đơn giá </td>
		<td valign = "top" align = "left"> <input name = "dongia" type = "text" value = ""/> </td>
	</tr>
	<tr>
		<td valign = "top" align = "right">Số lượng</td>
		<td valign = "top" align = "left"> <input name = "soluong" type = "text" value = ""/> </td>
	</tr>
	<tr>
		<td valign = "top" align = "right">Ngày nhập </td>
		<td valign = "top" align = "left"> <input name = "ngaynhap" type = "text" value = "<?php echo date('Ymd');?>"/> </td>
	</tr>
	<tr>
		<td valign = "top" colspan = "2"> <input name = "bt_ok" type = "submit" value = "Thêm"/>   <input name = "bt_reset" type = "reset" value = "Nhập lại"/> </td>
	</tr>
	 </table>
</form>
</div>